import { IFormConfig } from '@/base-ui/form/src/types'
interface IDialog {
  formConfig: IFormConfig
  colLayout?: any
  title: string
}
export const useDialogConfig = (): IDialog => {
  return {
    formConfig: {
      labelWidth: '80px',
      labelPosition: 'right',
      formItem: [
        {
          field: 'name',
          type: 'input',
          label: '用户名',
          placeholder: '请输入用户名'
        },
        {
          field: 'realname',
          type: 'input',
          label: '真实姓名',
          placeholder: '请输入真实姓名'
        },
        {
          field: 'password',
          type: 'input',
          label: '用户密码',
          hidden: false,
          placeholder: '请输入密码'
        },
        {
          field: 'cellphone',
          type: 'input',
          label: '电话号码',
          placeholder: '请输入电话号码'
        },
        {
          field: 'departmentId',
          type: 'select',
          label: '部门名称',
          placeholder: '请选择部门',
          options: []
        },
        {
          field: 'roleId',
          type: 'select',
          label: '角色名称',
          placeholder: '请选择角色',
          options: []
        }
      ],
      formBtns: false
    },
    colLayout: { span: 24 },
    title: '新建用户'
  }
}
